﻿using Castle.ActiveRecord;
using Castle.ActiveRecord.Linq;

namespace ClientOverflow.DataObjects
{
    /// <summary>
    /// Tag class is a data object based on active record. The class represents the table Tags in the
    /// database.
    /// </summary>
    [ActiveRecord]
    public class Tag : ActiveRecordLinqBase<Tag>
    {
        [PrimaryKey]
        public int ID { get; set; }

        [Property(Unique = true)]
        public string Name { get; set; }
    }
}